//
//  WKFourViewController.m
//  WKDemo
//
//  Created by wangzhaohui-Mac on 14-7-31.
//  Copyright (c) 2014年 com.app. All rights reserved.
//

#import "WKFourViewController.h"
#import "WKFourEliteViewController.h"
#import "WKFourNewViewController.h"
#import "WKFourThroughViewController.h"
#import "WKNavigationController.h"



@interface WKFourViewController ()
#warning 保存子控制器不被销毁
@property (nonatomic,strong) WKFourEliteViewController *eliteVC;
@property (nonatomic,strong) WKFourNewViewController *NewVC;
@property (nonatomic,strong) WKFourThroughViewController *throughVC;
@end

@implementation WKFourViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self addSubView];
}

/**
 *  刷新
 */
//- (void)rightRefresh
//{
//    WKLog(@"rightRefresh--->>WKFourViewController");
//    
//}

- (void)addSubView
{
    //精华
    WKFourEliteViewController *eliteVC = [[WKFourEliteViewController alloc] init];
    eliteVC.naVc = self.navigationController;
    self.eliteVC = eliteVC;
    eliteVC.tableView.frame = CGRectMake(0, 0, 320, 372);
//   self.eliteTableView = eliteVC.tableView;
    [self.scrollView addSubview:eliteVC.tableView];
    
    
    //最新
    WKFourNewViewController *newVC = [[WKFourNewViewController alloc] init];
    newVC.naVc = self.navigationController;
    newVC.tableView.frame = CGRectMake(320, 0, 320, 372);
    self.NewVC = newVC;
//    self.newtableView = newVC.tableView;
    [self.scrollView addSubview:newVC.tableView];
    
    
    //穿越
    WKFourThroughViewController *throughVC = [[WKFourThroughViewController alloc] init];
    throughVC.naVc = self.navigationController;
    throughVC.tableView.frame = CGRectMake(640, 0, 320, 372);
    self.throughVC = throughVC;
//    self.throughTableView = throughVC.tableView;
    [self.scrollView addSubview:throughVC.tableView];
    
    
}

@end
